package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.MemberAddressVo;
import com.biz.primus.ms.member.dao.ro.MemberAddressRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * ro转vo
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberAddressRoToMemberAddressVo implements Function<MemberAddressRo, MemberAddressVo>
{
    @Override
    public MemberAddressVo apply(MemberAddressRo ro) {
        MemberAddressVo vo = new MemberAddressVo();
        if (ro != null) {
            BeanUtils.copyProperties(ro, vo);
        }
        return vo;
    }
}
